<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>瓜朋网Admin管理平台--达人审核</title>
<link rel="stylesheet" type="text/css" href="/hdocs/admin/css/theme.css" />
<link rel="stylesheet" type="text/css" href="/hdocs/admin/css/style.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/hdocs/admin/css/ie-sucks.css" />
<![endif]-->
<script type="text/javascript" src="/hdocs/jquery/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/hdocs/admin/js/admin.js"></script>
<script type="text/javascript" src="/hdocs/admin/js/common.js"></script>
</head>
<body>
	<div id="container">
		#set ($menuIndex="account")
		#parse("/admin/inc/header.html")
		<div id="wrapper">
			<div id="content">
				<form action="/admin/darren/auditList.jsp">
					<table>
						<caption>达人审核</caption>
						<tr>
							<th>用户ID</th>
							<td>
								<input id="accountid" name="accountid" type="text" value="$!accountid"/>
							</td>
							<th>Email</th>
							<td>
								<input id="email" name="email" type="text" value="$!email"/>
							</td>
							<th>状态</th>
							<td>
								<select id="status" name="status">
									<option value="0" #if($!status == 0) selected #end>待审核</option>
									<option value="1" #if($!status == 1) selected #end>通过</option>
									<option value="-1" #if($!status == -1) selected #end>不通过</option>
								</select>
							</td>
							<td>
								<input type="submit" class="bt" value="查询"/>
							</td>
						</tr>
					</table>
				</form>
				<table>
					<thead>
						<tr>
							<th width="6%">用户ID</th>
							<th width="14%">邮箱</th>
							<th width="5%">状态</th>
							<th width="29%">基本资料</th>
							<th width="29%">申请理由</th>
							<th width="10%">申请时间</th>
							<th width="7%">操作</th>
						</tr>
					</thead>
					#foreach( $darren in $darrenAuditList)
					<tr>
						<td>$!darren.accountid</td>
						<td>$!darren.email</td>
						<td>
							#if($!darren.status == 0)
								待审核
							#elseif($!darren.status == 1)
								通过
							#else
								拒绝
							#end
						</td>
						<td>
							<strong>真实姓名：</strong>$!darren.realname<br/>
							<strong>职业/头衔：</strong>$!darren.title<br/>
							<strong>联系电话：</strong>$!darren.telephone<br/>
							<strong>擅长/爱好：</strong>$!darren.hobby<br/>
							<strong>详细地址：</strong>$!darren.address<br/>
							<strong>博客地址：</strong>$!darren.blog<br/>
						</td>
						<td>$!darren.reason</td>
						<td>$!darren.createdate</td>
						<td>
							<input type="button" onclick="audit($!darren.accountid,1)" value="通过"/><br/><br/>
							<input type="button" onclick="audit($!darren.accountid,-1)" value="拒绝"/>
						</td>
					</tr>
					#end
				</table>
				<form id="pageForm" action="/admin/darren/auditList.jsp" method="post" style="float:right;">
					<input name="accountid" type="hidden" value="$!accountid"/>
					<input name="email" type="hidden" value="$!email"/>
					<input name="status" type="hidden" value="$!status"/>
					#parse("/admin/inc/pageControl.html")
				</form>
				<form id="auditForm" action="/admin/darren/audit.jsp" method="post" style="display:none;">
					<input id="auditid" name="auditid" type="hidden"/>
					<input id="auditstatus" name="auditstatus" type="hidden"/>
					<input name="accountid" type="hidden" value="$!accountid"/>
					<input name="email" type="hidden" value="$!email"/>
					<input name="status" type="hidden" value="$!status"/>
					<input name="pageNo" type="hidden" value="$!pageNo"/>
				</form>
				<script type="text/javascript">
				function audit(auditid,auditstatus){
					$("#auditid").val(auditid);
					$("#auditstatus").val(auditstatus);
					$("#auditForm").submit();
				}
				</script>
			</div>
			#parse("/admin/inc/sidebar.html")
		</div>
		#parse("/admin/inc/footer.html")
	</div>
</body>
</html>
